import request from "@/utils/request";

// 文创数据列表
export function getCulturalAndCreativeList(params) {
  return request({
    url: '/bs/culturalAndCreative/list',
    method: 'get',
    params
  })
}

// 商品种类列表
export function getMerchandiseList(params) {
  return request({
    url: '/bs/culturalAndCreative/merchandiseList',
    method: 'get',
    params
  })
}

// 商品新增
export function merchandiseAdd(data) {
  return request({
    url: '/bs/culturalAndCreative/merchandiseAdd',
    method: 'post',
    data
  })
}

// 商品删除
export function merchandiseDetele(params) {
  return request({
    url: '/bs/culturalAndCreative/merchandiseDetele',
    method: 'get',
    params
  })
}

// 商品修改
export function merchandiseEdit(data) {
  return request({
    url: '/bs/culturalAndCreative/merchandiseEdit',
    method: 'post',
    data
  })
}

// 商品详情
export function culturalAndCreativeDetail(params) {
  return request({
    url: '/bs/culturalAndCreative/detail',
    method: 'get',
    params
  })
}

// 导出
export function exportHandle(params) {
  return request({
    url: '/bs/culturalAndCreative/export',
    method: 'get',
    params
  })
}

// 商品种类导出
export function merchandiseListExport(params) {
  return request({
    url: '/bs/culturalAndCreative/merchandiseListExport',
    method: 'get',
    params
  })
}

